-
-
Notifications
You must be signed in to change notification settings - Fork 343
[FEATURE] Add Jump Search Algorithm Implementation in R #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Add Jump Search Algorithm Implementation in R #216
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a comprehensive implementation of the Jump Search algorithm in R using the R6 object-oriented framework. Jump Search is an efficient searching technique for sorted arrays that achieves O(√n) time complexity by jumping ahead in fixed steps and then performing linear search within identified blocks.
- Complete R6 class implementation with proper validation and error handling
- Educational demonstration function with multiple examples and performance analysis
- Comprehensive documentation with algorithm explanation and usage examples
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
siriak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
This PR introduces an educational and well-documented implementation of the Jump Search Algorithm in R using the R6 OOP framework. Jump Search is an efficient searching technique for sorted arrays, achieving a time complexity of O(√n) — faster than linear search and simpler than binary search.
Complexity:
• Time Complexity: O(√n)
• Space Complexity: O(1)